package de.mhus.lib.mandala.table;

import java.text.AttributedString;

import de.mhus.lib.mandala.attributes.NamedAttribute;
import de.mhus.lib.mandala.text.Text;

public class TableColumn {

	private Text header;
	private Text text;
	
	public TableColumn() {
	}
	
	public TableColumn(String header, String text) {
		this.header = new Text(header);
		this.text = new Text(text);
	}
	
	public TableColumn(String header, String text, String bind) {
		this.header = new Text(header);
		this.text = new Text(text);
		this.text.getTagAttributes().setBindValue(new NamedAttribute(bind));
	}
	
	public Text getHeader() {
		return header;
	}
	public void setHeader(Text header) {
		this.header = header;
	}
	public Text getText() {
		return text;
	}
	public void setText(Text text) {
		this.text = text;
	}
	
}
